package com.project.homework4_9.frame;

import com.project.homework4_9.dao.IUser;
import com.project.homework4_9.dao.impl.ProxyService;
import com.project.homework4_9.dao.impl.UserImpl;

public class Test {
    private ProxyService proxy=new ProxyService(new UserImpl());
    private IUser dao=(IUser)proxy.getProxy();
    public Test(){
        dao.work();

        dao.sleep();

        dao.run();
    }
    public static void main(String[] args) {
        new Test();
    }
}
